package com.demo.gereric;

public class GerericTest01<R, T> {

	private R a;

	private T b;

	public R getA(T b) {
		System.out.println("==" + b.toString());
		return a;
	}

	public void setA(final R a) {
		this.a = a;
	}

	public T getB() {
		return b;
	}

	public void setB(final T b) {
		this.b = b;
	}

	public static void main(String[] args) {
		GerericTest01<String, Integer> base = new GerericTest01<>();
		base.setA("name");
		base.setB(27);
		System.out.println(base.getA(base.getB()));
	}
}

